{include file="common/header.tpl"}
{if $AppUI->id <= 0}
	{include file="index/login.tpl"}  
{else}
	{include file="common/menu.tpl"}
    <div class="rightColumn">
    	<div class="boxContent">
        	<div class="contentItem">
                <div class="contentItems">
                	<div class="headerTitle"><h2><a href="{$smarty.const.HOST_BACKEND}index/list">Thành viên Ban Quản Trị</a> &raquo; Thêm mới</h2></div>
                    <div class="secData">
                    	<form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}index/save">
                        	<div class="userInput">
                            	<label for="pusername">Username <span class="symbolRequired">*</span>:</label>
                                <input type="text" class="text" name="pusername" id="pusername" value="{if isset($smarty.session.post.pusername)}{$smarty.session.post.pusername}{/if}" />
                            </div>
                            <div class="userInput">
                            	<label for="ppassword">Mật khẩu <span class="symbolRequired">*</span>:</label>
                                <input type="password" class="text" name="ppassword" id="ppassword" value="" />
                            </div>
                            <div class="userInput">
                            	<label for="ppassword_confirm">Xác nhận mật khẩu <span class="symbolRequired">*</span>:</label>
                                <input type="password" class="text" name="ppassword_confirm" id="ppassword_confirm" value="" />
                            </div>
                            <div class="userInput">
                            	<label for="pfullname">Họ &amp; tên:</label>
                                <input type="text" class="text" name="pfullname" id="pfullname" value="{if isset($smarty.session.post.pfullname)}{$smarty.session.post.pfullname}{/if}" />
                            </div>
                            <div class="userInput">
                            	<label for="pfullname">Loại thành viên quản trị:</label>
                                <select name="ptype" id="ptype">
                                	{if isset($smarty.session.post.ptype)}
                                		{html_options options=$arrType selected=$smarty.session.post.ptype}
                                    {else}
                                    	{html_options options=$arrType}
                                    {/if}
                                </select>
                            </div>
                            <div class="secAction">
                        		<input type="submit" value="Lưu dữ liệu"/>
                               	<input type="reset" value="Nhập lại"/>
                            </div>
                        </form>
                   	</div>
                </div>
          	</div>
        </div>
    </div>
{/if}
{include file="common/footer.tpl"}
                
